﻿using System;
using System.Windows.Forms;
using Syncfusion.Windows.Forms;

namespace PMngr.Main
{
    public partial class BaseApproval : Office2007Form
    {
        public Func<DateTime, bool> Approved = delegate { return false; };

        public BaseApproval()
        {
            InitializeComponent();
            dtApproval.Value = DateTime.Now;
        }
       
        private void BtnApprovalClick(object sender, EventArgs e)
        {
            if (Approved(dtApproval.Value))
                DialogResult = DialogResult.OK;
        }
    }
}
